#include "IDAServlet.h"
#include "IContainer.h"
#include "ILogger.h"
class TestClientPlugin : public IPlugin {
public:
    void onLoad(INode *node) {
        IContainer * container = Bean<IContainer>("DA").pointer();
        if (container)
        container->on(OPEN,[=](ISession * session) ->int{
            LogI("send openCamera");
            session->Business<IDAServlet>()->openCamera(session->getServlet());
            session->Business<IDAServlet4Test>()->openCamera4Test(session->getServlet(),100,200);
            return 0;
        });
    }
};

REG_PLUGIN(TestClientPlugin);
